package com.maple.myeventbus.demo;

public class Friend extends Man {
    private String relation;

    public Friend(String name, int age, String relation) {
        super(name, age);
        this.relation = relation;
    }

    @Override
    public String toString() {
        return "Friend{" +
                "relation='" + relation + '\'' +
                '}' + super.toString();

    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }
}
